from datetime import time
import json
from os import path
import jwt
from captcha.image import ImageCaptcha
from flask import Blueprint , jsonify , send_file , g , request , session , current_app
from flask_restful import Api, Resource, reqparse
from ronglian_sms_sdk import SmsSDK
import random,redis

user_bp=Blueprint("user",__name__)
api=Api(user_bp)

from models.model import db,UserModel
from flask import Blueprint
user_blue = Blueprint("userblue",__name__)

@user_blue.route("/reg")
def reg():
    res = UserModel.query.all()
    print(res)
    return '欢迎使用flask'

class aaa(Resource):
    def get(self):
        res=UserModel.query.all
        print(res)
        return '111'

api.add_resource(aaa,"/a")






